#include <stdio.h>
#include <stdlib.h>
#define SMALLER(M,N) (M)<(N)?(M):(N)
#define BIGGER(M,N) (M)>(N)?(M):(N)

int lcm(int, int);
int gcd(int, int);

int main()
{
    int u,v;
    scanf("%d %d", &u, &v);
    printf("lcm:%d\n", lcm(u,v));
    return 0;
}

int gcd(int m, int n)
{
    int smaller = SMALLER(m, n);
    int bigger = BIGGER(m, n);
    for(int i = smaller; i>1; i--)
    {
        if((!((bigger) % i)) && (!((smaller) % i)))return i;
    }
    return 1;
}

int lcm(int u, int v)
{
    return u*v/gcd(u,v);
}